package com.diandian.backend.product.clients;

import com.diandian.backend.product.clients.dto.meituanShangou.MeituanShangouGetProductSkuInfoReqDTO;
import com.diandian.base.boot.starter.response.BaseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient("meituan-shangou-exchange")
//@FeignClient(value = "business-diandian-sms", url = "http://localhost:8083", path = "")
public interface DianDianMeituanShangouExchangeClient {

    /**
     * 查询商品sku库存信息
     */
    @PostMapping("/business/product/sku/getProductSkuStockInfo")
    BaseResult getProductSkuStockInfo(@RequestHeader(value = "appKey") String appKey,
                                      @RequestHeader(value = "appSecret") String appSecret,
                                      @RequestHeader(value = "belong") String belong,
                                      @RequestBody MeituanShangouGetProductSkuInfoReqDTO data);

}
